<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <script type="text/javascript" src="${ctx}/js/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="${ctx }/datepicker/WdatePicker.js"></script>

    <link rel="stylesheet" type="text/css" href="${ctx}/css/tipswindown.css"/>
    <script type="text/javascript" src="${ctx}/js/tipswindown.js"></script>
</head>

<body>
<a href="javascript:popup('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat.')">Popup!</a>

开始日期：<input id="startDate" onfocus="WdatePicker({maxDate:$('#endDate').val()})"/><br/>
结束日期：<input id="endDate" onfocus="WdatePicker({maxDate:$('#startDate').val()})"/>

<br/><br/><br/><br/>
弹出层tipwindown使用(详见http://www.nowamagic.net/jquery/jquery_JqueryPopup.php)<br/>
<a href="javascript:void(0)" onclick="showTipsWindown(1)">弹出文本信息提示</a><br/>
<a href="javascript:void(0)" onclick="showTipsWindown(2)">弹出页面中的某个ID的html</a><br/>
<a href="javascript:void(0)" onclick="showTipsWindown(3)">弹出图片</a><br/>
<a href="javascript:void(0)" onclick="showTipsWindown(4)">弹出请求action返回的页面</a><br/>


<div id="abc" style="display: none;">
    abcdefg
</div>
</body>


<script type="text/javascript">
    function showTipsWindown(type){
        if(type == 1){
            tipsWindown("提示","text:提示信息内容","250","150","true","","true","msg");
        }else if(type == 2){
            tipsWindown("标题","id:abc","300","200","true","","true","abc");
        }else if(type == 3){
            tipsWindown("图片","img:${ctx}/images/list_JS.png","250","150","true","","true","img");
        }else if(type == 4){
            tipsWindown("标题","url:post?${ctx}/exam/base_config_list.xhtml?organizationId=1","800","400","true","","true","text");
        }
    }
    $(function(){
        location.href = "${ctx}/index.xhtml"
    })
</script>
</html>